<template>
    <el-container>
        <el-main>
            <sc-editor :disabled="mode=='show'" v-model="form.content" placeholder="请输入" :height="400"></sc-editor>
        </el-main>
        <el-footer>
            <el-button type="primary" @click="submit">保存</el-button>
        </el-footer>
    </el-container>
</template>

<script>
import { defineAsyncComponent } from 'vue';
const scEditor = defineAsyncComponent(() => import('@/components/scEditor'));
    export default {
        components: {scEditor},
        data(){
            return {
                search:{
                    keyword:"",
                    time_range:[]
                },
                form:{
                    content:"",
                    process_id:8
                },
            }
        },
        methods: {
            async submit() {
                var res = [];
                res = await this.$API.produce.contractCorrela.contractAdd.post(this.form);
                this.isSaveing = false;
                if (res.code == 1) {
                    this.$message.success("操作成功")
                } else {
                    this.$alert(res.message, "提示", { type: 'error' })
                }
            },
        },
    }
</script>

<style lang="scss" scoped>

</style>